<template>
  <div>
    <!-- 点击地图显示商铺信息 -->
    <div class="areaInformation" v-if="$store.state.isShowAreaInfo">
      <div class="areaShopInfo">
            <div class="areaShopName">{{areaName.clickAreaName}}</div>
            <div class="areaShopFloor">{{areaName.clickAreaFloorname}}</div>
      </div>
      <div class="areaTriangle"></div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
      areaName: Object,
      isShowAreaInfo: Boolean
  },
  data() {
    return {};
  },
  computed: {},
  created() {},
  mounted() {},
  watch: {},
  methods: {},
  components: {}
};
</script>

<style lang='less'>
/* 点击地图显示商铺信息 */
.areaInformation {
  position: absolute;
  width: 150px;
  height: 75px;
  background-color: #1e1e1e;
  opacity: 0.9;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  border-radius: 3px;
  transition: all 0.8s;
  .areaShopInfo {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    .areaShopName {
      position: absolute;
      top: 0;
      font-size: 13px;
      color: #e6e6e6;
      width: 100%;
      height: 45px;
      line-height: 50px;
      text-align: center;
      word-wrap: break-word;
      overflow: hidden;
      word-break: break-all;
    }
    .areaShopFloor {
      position: absolute;
      bottom: 0;
      font-size: 13px;
      color: #e6e6e6;
      width: 100%;
      height: 30px;
      line-height: 20px;
      text-align: center;
      word-wrap: break-word;
      overflow: hidden;
      word-break: break-all;
    }
  }
  .areaTriangle {
    position: absolute;
    bottom: -0.55rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-width: 0.3rem;
    border-style: solid;
    border-color: #1e1e1e transparent transparent transparent;
  }
}
</style>
